-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E2e protocol ricardo #1826
E2e protocol ricardo #1826
Conversation
shared/domains/chelonia/chelonia.js
Outdated
return { | ||
get serialize () { | ||
return () => { | ||
if (instance !== self._instance) throw new Error('Chelonia instance has been reset') | ||
const rootState = sbp(self.config.stateSelector) | ||
const height = String(rootState.contracts[contractID].height) | ||
return { ...message.serialize(height), height } | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If .serialize()
is called immediately, and we don't need this outer wrapper object, can we just immediately return line 1246?
Passing run #1839 ↗︎
Details:
Review all test suite changes for PR #1826 ↗︎ |
sbp('gi.actions/chatroom/user-typing-event', { | ||
contractID: this.currentChatRoomId | ||
}).catch(e => { | ||
console.info('Error emitting user typing event', e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.error or console.warn
sbp('gi.actions/chatroom/user-stop-typing-event', { | ||
contractID: this.currentChatRoomId | ||
}).catch(e => { | ||
console.info('Error emitting user stopped typing event', e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.error or console.warn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!! 👏 😎
No description provided.